TEMPLATE = lib
CONFIG += release plugin
TARGET = blockreader

QT += xml opengl

win32 {
DESTDIR = ../../bin/readerplugins

INCLUDEPATH += ../ \
	       c:\Qt\include \
	       c:\drishtilib \
	       c:\drishtilib\hdf5\include

QMAKE_LIBDIR += c:\Qt\libQGLViewer-2.3.4\QGLViewer\release \
	c:\drishtilib\hdf5\lib \
	c:\drishtilib\hdf5\szip\lib \
	c:\drishtilib\hdf5\zlib\lib

LIBS += QGLViewer2.lib \
	hdf5_cpp.lib \
	hdf5.lib \
	szlib.lib 

QMAKE_LFLAGS += /NODEFAULTLIB:msvcrt.lib  \
	        /NODEFAULTLIB:msvcprt.lib \
		/NODEFAULTLIB:msvcrtd.lib  \
	        /NODEFAULTLIB:msvcprtd.lib
}

macx {
  DESTDIR = ../../bin/drishti.app/readerplugins

  INCLUDEPATH += ../ \
	         ../../../Library/Frameworks/QGLViewer.framework/Headers \
                 ../../../drishtilib/hdf5-1.8.8-mac-intel-x86_64-shared/include

  QMAKE_LIBDIR += ../../../drishtilib/hdf5-1.8.8-mac-intel-x86_64-shared/lib \
                  ../../../Library/Frameworks

  LIBS += -lhdf5_cpp -lhdf5 -lsz -framework QGLViewer
}


HEADERS += blockreader.h

SOURCES += blockreader.cpp
